home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / MacsBug OSA / source code / MMacsBug.cp < prev    next >
Encoding:
Text File  |  1997-06-27  |  1.5 KB  |  57 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // MMacsBug.cp
  3. // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved. 
  4. //----------------------------------------------------------------------------------------
  5.  
  6. /*
  7.     Change History:
  8.         ----- R11 -----
  9.         06/26/96    mdr        Install release marker.  Scope many globals.  Change TRUE/FALSE/NULL.
  10.         ----- R10 -----
  11.         03/04/96    gjc        [1327098] Remove unused InitUxxx calls and Includes
  12.         ----- 3.3 -----
  13.         ----- 3.3b1 -----
  14.          4/06/95    srf        Regroup Universal code initialization.
  15. */
  16.  
  17. // MacsBug
  18.  
  19. #ifndef __UMACSBUGAPPLICATION__
  20. #include "UMacsBugApplication.h"
  21. #endif
  22.  
  23. // MacApp
  24.  
  25.  
  26. #ifndef __UMACAPPGLOBALS__
  27. #include "UMacAppGlobals.h"
  28. #endif
  29.  
  30. #ifndef __UPRINTING__
  31. #include "UPrinting.h"
  32. #endif
  33.  
  34. // Generate universal code
  35. #pragma processor 68000
  36.  
  37.  
  38. //----------------------------------------------------------------------------------------
  39. // main: 
  40. //----------------------------------------------------------------------------------------
  41. #pragma segment Main
  42.  
  43. void main ()
  44. {
  45.     InitUMacApp(4);                                        // Initialize MacApp with 4 calls to MoreMasters
  46.     InitUPrinting();                                    // Initialize the printing gear
  47.     
  48.     TMacsBugApplication* aMacsBugApplication = new TMacsBugApplication;    // Allocate application object
  49.     aMacsBugApplication->IMacsBugApplication();        //    Initialize the object
  50.     aMacsBugApplication->Run();                        //    Well lets run it then!
  51. }
  52.  
  53. //----------------------------------------------------------------------------------------
  54. // End of MMacsBug.cp
  55.  
  56. #pragma segment Inline
  57.